<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-02-04 16:53:56
 * @LastEditTime: 2022-08-23 19:43:10
 * @LastEditors: CHINAKAIYUAN
 * @Description: 
 */

namespace App\Http\Services\BaseData;

use App\Http\Services\Service;

use App\Repositories\MaterialCategoryRepository;
use DB;


class MaterialCategoryService extends Service
    {
    public function __construct(MaterialCategoryRepository $category)
        {
        $this->repository = $category;
        }

    public function list()
        {
        return $this->repository->condition()->list();
        }
      protected function delete($request)
        {
        return $this->repository->delete($request->toArray());
        }
    protected function save($request)
        {
        return $this->repository->autosave($request->toArray());
        }
    }
